﻿using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;

using System.Collections.Generic;
using My.ELibrary.Model.Train;
using My.ELibrary.Business.Train;

public partial class Train_MainPage : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            List<ElibTrainModel> list = new List<ElibTrainModel>();
            string top = "1";
            if (Request.QueryString["id"] != null)
            {
                top = Request.QueryString["id"].ToString();
            }
            list = ElibTrainBLL.GetInstance().GetTrain(top);
            this.DataList1.DataSource = list;
            this.DataList1.DataBind();
        }
    }
}
